<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>添加会员</title>

    <link href="${ctx}/resources/media/css/bootstrap-fileupload.css"
	rel="stylesheet" type="text/css" />
<link href="${ctx}/resources/media/css/chosen.css" rel="stylesheet"
	type="text/css" />
<link href="${ctx}/resources/media/css/profile.css" rel="stylesheet"
	type="text/css" />

<script type="text/javascript"
	src="${ctx}/resources/media/js/bootstrap-fileupload.js"></script>
<script type="text/javascript"
	src="${ctx}/resources/media/js/chosen.jquery.min.js"></script>
    
</head>
<body>
	<div class="row-fluid profile">
		<div class="span12">
			<!--BEGIN TABS-->
			<div class="tabbable tabbable-custom tabbable-full-width">
				<ul class="nav nav-tabs">
					<li><a href="${ctx}/member/list">会员列表</a></li>
					<li class="active"><a href="${ctx}/member/view/${member.id}">会员信息</a></li>
					<li ><a href="${ctx}/member/form/${member.id}">信息修改</a></li>
				</ul>
				<div class="tab-content">
					<!--end tab-pane-->
					<div class="tab-pane profile-classic row-fluid active" id="tab_1_2">
						<div class="span12">
							<!-- BEGIN SAMPLE FORM PORTLET-->
							<div class="portlet box blue">
								<div class="portlet-title">
									<div class="caption">
										<i class="icon-reorder"></i> <span class="hidden-480">添加会员</span>
									</div>
								</div>
								<!-- END SAMPLE FORM PORTLET-->
								<div class="portlet-body form">
									<form class="form-horizontal" action="${ctx }/member/save" enctype="multipart/form-data" id="form" method="post">
										<fieldset>
											<input id="" type="hidden" name="id" value="${member.id }">
											<input type="hidden"  name="version" value="${member.version }">
											<div class="control-group">

												<!-- Text input-->
												<label class="control-label" for="input01">标题</label>
												<div class="controls">
													<input type="text" placeholder="会员名称" value="${member.userName }" name="name" class="m-wrap input-xlarge">
													<p class="help-block"></p>
												</div>
											</div>
                                            <div class="control-group">

                                                <!-- Text input-->
                                                <label class="control-label" for="input01">键</label>
                                                <div class="controls">
                                                    <input type="text" placeholder="会员键值" value="${member }" name="key" class="m-wrap input-xlarge">
                                                    <p class="help-block"></p>
                                                </div>
                                            </div>
											<div class="control-group">

												<!-- Text input-->
												<label class="control-label" for="input01">值</label>
												<div class="controls">
													<input type="text" placeholder="会员值" name="value" value="${member }" class="m-wrap input-xlarge">
													<p class="help-block"></p>
												</div>
											</div>

											<div class="control-group">

												<!-- Text input-->
												<label class="control-label" for="input01">排序</label>
												<div class="controls">
													<input type="text" placeholder="排序值" value="30" name="sort" class="m-wrap input-xlarge">
												</div>
											</div>

										</fieldset>
										<div class="form-actions">
											<button type="submit" class="btn blue">
												<i class="icon-ok"></i> 保存
											</button>
                                            <button type="button" onclick="history.go(-1)" class="btn">取消</button>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!--END TABS-->
			</div>
		</div>
	</div>

    <script type="text/javascript"
            src="${ctx}/resources/media/js/select2.min.js"></script>
    <link rel="stylesheet" type="text/css"
          href="${ctx}/resources/media/css/select2_metro.css" />
    <script type="text/javascript">


        $(function(){

            $("select").select2();

        });

    </script>


</body>
</html>